package com.eedi.framework.notify.enums;

import com.eedi.framework.common.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 通知模板类型枚举
 *
 * @author HUIHUI
 */
@Getter
@AllArgsConstructor
@ToString
public enum SysNotifyTemplateTypeEnum implements BaseEnum<Integer,String> {

    /**
     * 系统消息
     */
    SYSTEM_MESSAGE(2, "系统消息"),
    /**
     * 通知消息
     */
    NOTIFICATION_MESSAGE(1,"通知消息");

    private final Integer type;
    private final String name;


    @Override
    public Integer getCode() {
        return this.type;
    }

    @Override
    public String getDesc() {
        return this.name;
    }

    @Override
    public String title() {
        return "通知模板类型";
    }
}
